package demo1;

public class Student {
    private int age;
    public String name;
    private double score;
    public static String schoolName = "大学";

    public Student(int age, String name, double score) {
        this.age = age;
        this.name = name;
        this.score = score;
        System.out.println("调用含参构造方法！");
    }
    public Student() {
        System.out.println("调用无参构造方法！");
    }
    public static String study() {
        return "正在在"+Student.schoolName+"上课！";
    }
}
